/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using DGZImp.SysEntity;

namespace DGZImp.BasProject.DomainModels
{
    [Entity(TableCnName = "条码解析规则",TableName = "Bas_SnSplitRule",DBServer = "ServiceDbContext")]
    public partial class Bas_SnSplitRule:ServiceEntity
    {
        /// <summary>
       ///ID
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long SnSplitRuleId { get; set; }

       /// <summary>
       ///规则代码
       /// </summary>
       [Display(Name ="规则代码")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string RuleCode { get; set; }

       /// <summary>
       ///规则说明
       /// </summary>
       [Display(Name ="规则说明")]
       [MaxLength(128)]
       [Column(TypeName="nvarchar(128)")]
       [Editable(true)]
       public string RuleName { get; set; }

       /// <summary>
       ///类型 1.分段 2.固定长度
       /// </summary>
       [Display(Name ="类型 1.分段 2.固定长度")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? RuleType { get; set; }

       /// <summary>
       ///条码段分隔符
       /// </summary>
       [Display(Name ="条码段分隔符")]
       [MaxLength(1)]
       [Column(TypeName="nvarchar(1)")]
       [Editable(true)]
       public string Delimiter { get; set; }

       /// <summary>
       ///条码段数
       /// </summary>
       [Display(Name ="条码段数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? TierNum { get; set; }

       /// <summary>
       ///厂商/客户代码在第几段
       /// </summary>
       [Display(Name ="厂商/客户代码在第几段")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? CompanyIndex { get; set; }

       /// <summary>
       ///料号在第几段
       /// </summary>
       [Display(Name ="料号在第几段")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? MaterialIndex { get; set; }

       /// <summary>
       ///批次码在第几段
       /// </summary>
       [Display(Name ="批次码在第几段")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? LotIndex { get; set; }

       /// <summary>
       ///日期码在第几段
       /// </summary>
       [Display(Name ="日期码在第几段")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? DatecodeIndex { get; set; }

       /// <summary>
       ///数量在第几段
       /// </summary>
       [Display(Name ="数量在第几段")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? QtyIndex { get; set; }

       /// <summary>
       ///条码长度
       /// </summary>
       [Display(Name ="条码长度")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? TotalLength { get; set; }

       /// <summary>
       ///厂商/客户代码起始
       /// </summary>
       [Display(Name ="厂商/客户代码起始")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? CompanyIndexFrom { get; set; }

       /// <summary>
       ///厂商/客户代码截至
       /// </summary>
       [Display(Name ="厂商/客户代码截至")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? CompanyIndexTo { get; set; }

       /// <summary>
       ///料号起始
       /// </summary>
       [Display(Name ="料号起始")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? MaterialIndexFrom { get; set; }

       /// <summary>
       ///料号截至
       /// </summary>
       [Display(Name ="料号截至")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? MaterialIndexTo { get; set; }

       /// <summary>
       ///批次码起始
       /// </summary>
       [Display(Name ="批次码起始")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? LotIndexFrom { get; set; }

       /// <summary>
       ///批次码截至
       /// </summary>
       [Display(Name ="批次码截至")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? LotIndexTo { get; set; }

       /// <summary>
       ///日期码起始
       /// </summary>
       [Display(Name ="日期码起始")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? DatecodeIndexFrom { get; set; }

       /// <summary>
       ///日期码截至
       /// </summary>
       [Display(Name ="日期码截至")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? DatecodeIndexTo { get; set; }

       /// <summary>
       ///数量起始
       /// </summary>
       [Display(Name ="数量起始")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? QtyIndexFrom { get; set; }

       /// <summary>
       ///数量截至
       /// </summary>
       [Display(Name ="数量截至")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? QtyIndexTo { get; set; }

       /// <summary>
       ///是否有效
       /// </summary>
       [Display(Name ="是否有效")]
       [Column(TypeName="int")]
       public int? IsValid { get; set; }

       /// <summary>
       ///创建用户
       /// </summary>
       [Display(Name ="创建用户")]
       [Column(TypeName="bigint")]
       public long? CreateId { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///修改用户
       /// </summary>
       [Display(Name ="修改用户")]
       [Column(TypeName="bigint")]
       public long? ModifyId { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyTime { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(512)]
       [Column(TypeName="nvarchar(512)")]
       [Editable(true)]
       public string Remarks { get; set; }

       
    }
}